package core.communication.message;

import java.util.UUID;

public class TerminalRegistrationMessage extends TerminalMessage {
	private static final long serialVersionUID = -7681150954117261027L;

	private Boolean registrationConfirmation = false;

	public TerminalRegistrationMessage(String terminalLocatorURI, UUID registrationToken, Direction direction) {
		super();
		setPriority(MessagePriority.NORMAL);
		setMessageType(MessageType.TerminalRegistration);
		setDirection(direction);
		if (direction == Direction.DOWN)
			setDestinationURI(terminalLocatorURI);
		this.terminalLocatorURI = terminalLocatorURI;
		this.registrationToken = registrationToken;
	}

	public Boolean getRegistrationConfirmation() {
		return registrationConfirmation;
	}

	public void setRegistrationConfirmation(Boolean registrationConfirmation) {
		this.registrationConfirmation = registrationConfirmation;
	}
}
